<template>
  <div>
    <el-button @click="dialogVisible = true">打开编辑</el-button>
    <el-dialog title="编辑学生信息" v-model:visible="dialogVisible">
      <span>测试内容</span>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取消</el-button>
        <el-button type="primary">确认</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      dialogVisible: false
    };
  }
};
</script>
